﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MVC4_Test.Models
{
    // Setting properties to question
    public class Question
    {
        [Key] // Denotes one or more properties that uniquely identify an entity.
        public int QuestionId { get; set; }
        public string Text { get; set; }
        public string Title { get; set; }
        public int View { get; set; }
        public DateTime Date { get; set; }

        // Allowing these methode to be overridden in a drived class
        public virtual List<QuestionTag> QuestionTag { get; set; }
        public virtual List<Answer> Answer { get; set; }
    
    }   
}